package com.syy.spider.service.impl;

import com.syy.spider.dao.UserMapper;
import com.syy.spider.pojo.User;
import com.syy.spider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectUserByNameAndPas(String oldPas, String username) {
        return userMapper.selectUserByNameAndPas(oldPas,username);
    }

    @Override
    public void updatePwd(String username, String newPas) {
        userMapper.updatePwd(username,newPas);
    }
}
